package com.zycfc.zsf.boot.validation.validator;

import com.zycfc.zsf.boot.validation.annotation.*;
import javax.validation.*;
import com.zycfc.zsf.boot.util.text.*;
import java.lang.annotation.*;

public class IdNumberValidator implements ConstraintValidator<IdNumber, String>
{
    public void initialize(final IdNumber constraintAnnotation) {
    }
    
    public boolean isValid(final String value, final ConstraintValidatorContext context) {
        return IdCardUtils.validateCard(value);
    }
}
